<?php
/**
 * The html template file of index method of index module of zentaoPHP.
 *
 * The author disclaims copyright to this source code.  In place of
 * a legal notice, here is a blessing:
 *
 *  May you do good and not evil.
 *  May you find forgiveness for yourself and forgive others.
 *  May you share freely, never taking more than you give.
 */
?>
<?php include '../../common/view/header.html.php';?>
<div class='with-side'>
    <div class='side1'>
        <nav class='menu leftmenu affix'>
            <ul class='nav nav-primary'>
                <li><?php echo html::a($this->createLink('setting', 'setadmin'),$lang->setting->setadmin) ;?></li>
                <li><?php echo html::a($this->createLink('setting', 'index'),$lang->setting->index) ;?></li>
                <li><?php echo html::a($this->createLink('setting', 'setaudit'),$lang->setting->setaudit) ;?></li>
                <li><?php echo html::a($this->createLink('setting', 'setlink'),$lang->setting->setlink) ;?></li>
                <li><?php echo html::a($this->createLink('setting', 'setbanner'),$lang->setting->setbanner) ;?></li>
                <li class="active"><?php echo html::a($this->createLink('setting', 'setvideo'),$lang->setting->setvideo) ;?></li>
            </ul>
        </nav>
    </div>
    <div class='main'>
        <div class='panel'>
            <div class='panel-heading'><?php echo $lang->setting->setvideo?></div>
            <div class='panel-body'>
                <form id='ajaxForm' method='post' enctype="multipart/form-data">
                    <table class='table table-form table-condensed w-p40'>
                        <tr>
                            <th class='w-500px'>展示</th>
                            <td>
                              <a href="<?php echo $this->createLink('setting', 'showvideo');?>" data-toggle='modal' class='model'><?php echo html::image($webRoot.$video->imgsrc,"alt=$video->title") ?></a>
                            </td><td></td>
                        </tr>
                        <tr>
                            <th class='w-100px'>图片</th>
                            <td>
                                <?php echo html::file("img") ?>
                            </td><td></td>
                        </tr>
                        <tr>
                            <th class='w-100px'>视频</th>
                            <td>
                                <?php echo html::file("video") ?>
                            </td><td></td>
                        </tr>
                        <tr>
                            <th class='w-100px'>标题</th>
                            <td>
                                <?php echo html::input("title",$video->title)?>
                            </td><td></td>
                        </tr>
                        <tr><th></th><td colspan='2'><?php echo html::submitButton();?></td></tr>
                    </table>
                </form>
            </div>
        </div>
    </div>
</div>
<?php include '../../common/view/footer.html.php';?>
